// 医生
import { http } from '@/utils/http.js'

/**
 *  首页-查询推荐/减脂/饮食健康/关注页面--百科文章列表
 *  @params data 请求对象
 */
export const getKnowledgeListAPI = (data) => {
	return http.get('/patient/home/knowledge', {params: data} )
}

/**
 * 首页-关注的医生列表
 */
export const getDoctorListAPI = () => {
	return http.get('/home/page/doc', {
		params: {
			current: 1,
			pageSize: 5
		}
	})
}

/**
 * 关注-关注操作
 * @params id
 * @params type 关注的类型
 */
export const likeFollowAPI = (id, type='doc') => {
	return http.post('/like', {id, type})
}



/**
 * 评价医生
 */
export const evaluateDoctorAPI = (data) => {
  return http.post('/patient/order/evaluate', data)
}